import http from "../utils/http";


export const GetRoleList = (params:any): any => {
    return http.get("/api/role",{
        params:params
    })
}

export const AddRole = (data:any): any => {
    return http.post("/api/role",data)
}

export const UpdateRole = (data:any): any => {
    return http.put("/api/role",data)
}

export const DeleteRole = (data:any): any => {
    return http.delete("/api/role",{
        data:data
    })
}


export const Bindmenus = (data:any): any => {
    return http.post("/api/role/bindmenus",data)
}

export const getmenus = (params:any): any => {
    return http.get("/api/role/getmenus",{
        params:params
    })
}